import request from "../utils/request.js";
export async function commentPost(commentInformation,callback){
    await request.post('/comment/addComment',commentInformation).then(callback)
}
export async function commentLoad(documentId,pageSize,pageNum,callback) {
    await request.get('/comment/pageList',{
        params:{
            documentId:documentId,
            pageSize:pageSize,
            pageNo:pageNum
        }
    }).then(callback)
}
export async function commentDelete(id,callback){
    await request.post(`/comment/deleteCommentById/${id}`).then(callback)
}